package com.thejavacode.spring;

import org.springframework.batch.item.support.AbstractItemWriter;
import com.thejavacode.spring.model.Planeta;

/**
 *
 * @author scarnicero
 */
public class ConsolaItemWriter extends AbstractItemWriter {

    public void write(Object item) throws Exception {
        Planeta planeta = (Planeta) item;
        System.out.println("Planeta leido: " + planeta.toString());
    }

}
